import Vue from 'vue'
import Router from 'vue-router'
import Jfsc from '@/components/wk/Jfsc'
import Zfcg from '@/components/wk/Zfcg'
import Scdd from '@/components/wk/Scdd'
import Login from '@/components/zwf/Login'
import Reg from '@/components/zwf/Reg'
import Shouye from '@/components/wk/Shouye'
import Home from '@/components/lyl/Home'
import Respassword from '@/components/zwf/Respassword'
import Expserver from '@/components/lyl/Expserver'
import Ssjg from '@/components/wk/Ssjg'
import Xyhzc from '@/components/wk/Xyhzc'
import Gywm from '@/components/wk/Gywm'
import Zxxd from '@/components/wk/Zxxd'
import Zffs from '@/components/wk/Zffs'
import Mine from '@/components/zwf/Mine'
import Five from '@/components/lyl/Five'
import Detail from '@/components/lyl/Detail'
import Myaccount from '@/components/zwf/Myaccount'
import Info from '@/components/zwf/Info'
import Chongzhi from '@/components/zwf/Chongzhi'
import Chongzhika from '@/components/zwf/Chongzhika'
import Myorder from '@/components/zwf/Myorder'
import Feedback from '@/components/zwf/Feedback'
import Mymessage from '@/components/zwf/Mymessage'
import Mymessage2 from '@/components/zwf/Mymessage2'
import Myintegral from '@/components/zwf/Myintegral'
import Changepwd from '@/components/zwf/Changepwd'
import Address from '@/components/zwf/Address'
import Addaddress from '@/components/zwf/Addaddress'
import Collect from '@/components/zwf/Collect'
import Mybill from '@/components/zwf/Mybill'
import Changephone from '@/components/zwf/Changephone'
import Shopyes from '@/components/lyl/Shopyes'
import Shopno from '@/components/lyl/Shopno'
import Dingxi from '@/components/lyl/Dingxi'
import Shouhuo1 from '@/components/lyl/Shouhuo1'
import Shouhuo2 from '@/components/lyl/Shouhuo2'
import Dingsucess from '@/components/lyl/Dingsucess'
import Serchwu from '@/components/lyl/Serchwu'
import Serchyou from '@/components/lyl/Serchyou'
import OrderDetail from '@/components/zwf/OrderDetail'
import PointsOrders from '@/components/zwf/PointsOrders'

Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/jfsc',
      name: 'Jfsc',
      component: Jfsc
    },
    {
      path: '/zfcg',
      name: 'Zfcg',
      component: Zfcg
    },
    {
      path: '/scdd',
      name: 'Scdd',
      component: Scdd
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/reg',
      name: 'Reg',
      component: Reg
    },
    {
      path: '/respassword',
      name: 'Respassword',
      component: Respassword
    },
    {
      path: '/expserver',
      name: 'Expserver',
      component: Expserver
    },
    {
      path: '/ssjg',
      name: 'Ssjg',
      component: Ssjg,
    },
    {
      path: '/mine',
      name: 'Mine',
      component: Mine,
      children:[
        {
          path: '/myaccount',
          name: 'Myaccount',
          component: Myaccount
        },
        {
          path: '/info',
          name: 'Info',
          component: Info
        },
        {
          path: '/chongzhi',
          name: 'Chongzhi',
          component: Chongzhi
        },
        {
          path: '/chongzhika',
          name: 'Chongzhika',
          component: Chongzhika
        },
        {
          path: '/myorder',
          name: 'Myorder',
          component: Myorder
        },
        {
          path: '/feedback',
          name: 'Feedback',
          component: Feedback
        },
        {
          path: '/mymessage',
          name: 'Mymessage',
          component: Mymessage
        },
        {
          path: '/mymessage2',
          name: 'Mymessage2',
          component: Mymessage2
        },
        {
          path: '/myintegral',
          name: 'Myintegral',
          component: Myintegral
        },
        {
          path: '/changepwd',
          name: 'Changepwd',
          component: Changepwd
        },
        {
          path: '/address',
          name: 'Address',
          component: Address
        },
        {
          path: '/addaddress',
          name: 'Addaddress',
          component: Addaddress
        },
        {
          path: '/collect',
          name: 'Collect',
          component: Collect
        },
        {
          path: '/mybill',
          name: 'Mybill',
          component: Mybill
        },
        {
          path: '/changephone',
          name: 'Changephone',
          component: Changephone
        },
        {
          path: '/orderDetail',
          name: 'OrderDetail',
          component: OrderDetail
        },
        {
          path: '/pointsOrders',
          name: 'PointsOrders',
          component: PointsOrders
        },

      ]
    },
    {
      path: '/five',
      name: 'Five',
      component: Five
    },
    {
      path: '/xyhzc',
      name: 'Xyhzc',
      component: Xyhzc,
      children: [
        {
          path: '/gywm',
          name: 'Gywm',
          component: Gywm
        },
        {
          path: '/zxxd',
          name: 'Zxxd',
          component:Zxxd,
        },
        {
          path: '/zffs',
          name: 'Zffs',
          component:Zffs,
        }
      ]
    },
    {
      path: '/detail',
      name: 'Detail',
      component: Detail
    },
    {
      path: '/shopyes/:id',
      name: 'Shopyes',
      component: Shopyes
    },
    {
      path: '/shopno',
      name: 'Shopno',
      component: Shopno
    },
    {
      path: '/dingxi',
      name: 'Dingxi',
      component: Dingxi,
      children:[
        {
          path: '/shouhuo1/:id',
          name: 'Shouhuo1',
          component: Shouhuo1
        },
        {
          path: '/shouhuo2/:id',
          name: 'Shouhuo2',
          component: Shouhuo2
        }
      ]
    },
    {
      path: '/dingsucess/:id',
      name: 'Dingsucess',
      component: Dingsucess
    },
    {
      path: '/serchwu',
      name: 'Serchwu',
      component: Serchwu
    },
    {
      path: '/serchyou',
      name: 'Serchyou',
      component: Serchyou
    },
    {
      path:'*',
      name:'Shouye',
      component:Shouye
    },
  ]
  })
